// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0

export component Demo inherits Window {
    function b(c:int,d:int) -> bool {
        c == d
    }

    function a() {
        if b(0,1) {
            return;
        }
        b(0,1);
    }

    TouchArea {
        clicked => {
            a();
            bar();
        }
    }


    callback foo() -> int;
    function bar() {
        if foo() == 0 {
            return;
        }
        foo();
    }
}

// gcc-args: -Wno-unused-value

